Calculates value x as a percentage of value y. That is (x/y) * 100.
The following examples are applicable to Crystal syntax:
{file.BALANCE OUTSTANDING} % {file.CREDIT LIMIT}
Returns 30.00, where {file.BALANCE OUTSTANDING} = $1500 and {file.CREDIT LIMIT} = $5000.
{file.AMOUNT} % {file.CREDIT LIMIT}
Returns 32.26, where {file.AMOUNT} = 2257.87 and {file.CREDIT LIMIT} = 7000.
Note: If the denominator equals 0, the report will be halted with a divide by zero protection. If you want to avoid this type of problem, you should put a test in.
{file.SALES} % {file.FORECAST}
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |